package com.banesco.precargadepositos.interfaz.componentes;

import net.rim.device.api.ui.text.TextFilter;

public class MyTextfilter extends TextFilter {
	private static TextFilter _tf = TextFilter.get(TextFilter.NUMERIC);
	
    public char convert(char c, int status) {  
        if (!validate(c))  
            return 0;  
        return c;  
    }  

    public boolean validate(char c) {  
       String validChars = "0123456789,";  
       if(validChars.indexOf(c)!=-1){  
           return true;  
       }else{  
           return false;  
       }  
    }  
}
